package com.minshenglife.zanzan.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.minshenglife.commons.dal.EntityDao;
import com.minshenglife.commons.dal.MyBatisRepository;
import com.minshenglife.zanzan.entity.UserSoft;
import com.minshenglife.zanzan.result.UserSoftResult;


/**
 * 
 * @author 867101835
 *
 */
@Repository
@MyBatisRepository
public interface UserSoftDao extends EntityDao<UserSoft>{
	
	/**
	 * 根据职位级别查询所有的相对应级别的员工，SQL中按照升序排序
	 * @param postid
	 * @return
	 */
	public List<UserSoftResult> findAllUserByPostId(String postId);
	
	
	public void deleteAllByPostId(String postId);
	
	public List<UserSoftResult> findAllUserByPostIdAndViewType(Map<String,String> map);
}
